//bool, ObjList objs, str OUT reasonText

Unit this;
int envi, envi2;
if (objs.count != 1) return false;
this = objs[0].AsUnit();
if(!.IsValid()) return false;

envi = EnvReadInt(.player, "LeaderOfNation");
if(envi == 1){
    reasonText = rollover(this, "Leader is already");
	return false;
}
if(!.HasItem("General")){
	reasonText = rollover(this, "Nominate on Leader only for generals");
	return false;
}
envi2 = EnvReadInt(.player, "AdventureNoLeader");
if(envi2 == 1){
	reasonText = rollover(this, "No Leader in Adventure");
	return false;
}
return true;
